package com.lh.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
// 不一定要签收?
//用户更新进度保存在这里
//然后提供审核人员看到更新前后的数据
//审核人员审核通过后发给责任人签收,责任人签收后进度更新完成.
///节点更新的中间表
@Data
@TableName("deadline_node_update")
public class DeadlineNodeUpdate {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("node_id")
    private String nodeId;

    @TableField("name")
    private String name;

    @TableField("dead_line")
    private String deadLine;

    @TableField("old_state")
    private String oldState;

    @TableField("new_state")
    private String newState;

    @TableField("old_remark")
    private String oldRemark;

    @TableField("new_remark")
    private String newRemark;

    @TableField("old_process")
    private String oldProcess;

    @TableField("new_process")
    private String newProcess;

    @TableField("old_end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date oldEndTime;

    @TableField("new_end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date newEndTime;

    @TableField("old_progress")
    private String oldProgress;

    @TableField("new_progress")
    private String newProgress;

    @TableField("old_file_list")
    private String oldFileList;

    @TableField("new_file_list")
    private String newFileList;


    @TableField("approval_status")
    private String approvalStatus;
    @TableField("approval_reason")
    private String approvalReason;

    //审核通过时间
    @TableField("sign_user")
    private String signUser;

    @TableField("sign_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date signTime;


    @TableField("creator_user")
    private String creatorUser;

    @TableField("created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

}